﻿// MT582




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category5
{
  public class MT582 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagDefinition U0015;
    private static SwiftTagSequenceDefinition U0016;
    private static SwiftTagDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagDefinition U001A;
    private static SwiftTagDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagChoiceDefinition U0080;
    private static SwiftTagDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagSubItemDefinition U0089;
    private static SwiftTagChoiceDefinition U008A;
    private static SwiftTagDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagDefinition U008E;
    private static SwiftTagSubItemDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagChoiceDefinition U0091;
    private static SwiftTagDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagSubItemDefinition U0094;
    private static SwiftTagDefinition U0095;
    private static SwiftTagSubItemDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagSubItemDefinition U009A;
    private static SwiftTagSequenceDefinition U009B;
    private static SwiftTagDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagSubItemDefinition U009E;
    private static SwiftTagDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagSubItemDefinition U0002U0002;
    private static SwiftTagSubItemDefinition U0003U0002;
    private static SwiftTagChoiceDefinition U0004U0002;
    private static SwiftTagDefinition U0005U0002;
    private static SwiftTagSubItemDefinition U0006U0002;
    private static SwiftTagSubItemDefinition U0007U0002;
    private static SwiftTagDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagSubItemDefinition U0011U0002;
    private static SwiftTagChoiceDefinition U0012U0002;
    private static SwiftTagDefinition U0013U0002;
    private static SwiftTagSubItemDefinition U0014U0002;
    private static SwiftTagSubItemDefinition U0015U0002;
    private static SwiftTagDefinition U0016U0002;
    private static SwiftTagSubItemDefinition U0017U0002;
    private static SwiftTagSubItemDefinition U0018U0002;
    private static SwiftTagDefinition U0019U0002;
    private static SwiftTagSubItemDefinition U001AU0002;
    private static SwiftTagSubItemDefinition U001BU0002;

    [Description("Identification of The Transaction")]
    public MT582.SequenceAClass SequenceA
    {
      get
      {
        return new MT582.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Funds Claimed Or Advised")]
    public MT582.SequenceBClass SequenceB
    {
      get
      {
        MT582.SequenceBClass sequenceBclass = new MT582.SequenceBClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceBclass).Count > 0)
          return sequenceBclass;
        else
          return (MT582.SequenceBClass) null;
      }
    }

    [Description("Securities Claimed or Advised")]
    public MT582.SequenceCClass SequenceC
    {
      get
      {
        MT582.SequenceCClass sequenceCclass = new MT582.SequenceCClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceCclass).Count > 0)
          return sequenceCclass;
        else
          return (MT582.SequenceCClass) null;
      }
    }

    public MT582()
      : base(true)
    {
    }

    public MT582(SwiftMessage message)
      : base(message)
    {
    }

    public MT582.SequenceBClass AddSequenceB()
    {
      return this.SequenceB ?? new MT582.SequenceBClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceB(MT582.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT582.SequenceCClass AddSequenceC()
    {
      return this.SequenceC ?? new MT582.SequenceCClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceC(MT582.SequenceCClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT582.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT582.MessageDefinition = new SwiftMessageDefinition("MT582", "Reimbursement Claim Or Advice");
      MT582.U0002 = new SwiftTagSequenceDefinition("SequenceA", "Identification of The Transaction");
      MT582.U0003 = new SwiftTagDefinition("TransactionReferenceNumber_A_20", "Transaction Reference Number");
      MT582.U0003.TagName = ":20:";
      MT582.U0004 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT582.U0003.Elements.Add((SwiftDefinitionElement) MT582.U0004);
      MT582.U0002.Elements.Add((SwiftDefinitionElement) MT582.U0003);
      MT582.U0005 = new SwiftTagDefinition("RelatedReference_A_21", "Related Reference");
      MT582.U0005.TagName = ":21:";
      MT582.U0005.Mandatory = false;
      MT582.U0006 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT582.U0005.Elements.Add((SwiftDefinitionElement) MT582.U0006);
      MT582.U0002.Elements.Add((SwiftDefinitionElement) MT582.U0005);
      MT582.U0007 = new SwiftTagDefinition("FurtherIdentification_A_23", "Further Identification");
      MT582.U0007.TagName = ":23:";
      MT582.U0008 = new SwiftTagSubItemDefinition("FurtherIdentification", "Further Identification");
      MT582.U0007.Elements.Add((SwiftDefinitionElement) MT582.U0008);
      MT582.U0002.Elements.Add((SwiftDefinitionElement) MT582.U0007);
      MT582.U000E = new SwiftTagDefinition("QuantityOfSecurities_A_35A", "Quantity Of Securities");
      MT582.U000E.TagName = ":35A:";
      MT582.U000F = new SwiftTagSubItemDefinition("Type", "Type");
      MT582.U000E.Elements.Add((SwiftDefinitionElement) MT582.U000F);
      MT582.U0010 = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT582.U000E.Elements.Add((SwiftDefinitionElement) MT582.U0010);
      MT582.U0002.Elements.Add((SwiftDefinitionElement) MT582.U000E);
      MT582.U0011 = new SwiftTagDefinition("IdentificationOfSecurities_A_35B", "Identification Of Securities");
      MT582.U0011.TagName = ":35B:";
      MT582.U0012 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification Of Security");
      MT582.U0012.Mandatory = false;
      MT582.U0013 = new SwiftTagSubItemDefinition("IdentificationofSecurity", "Identification of Security");
      MT582.U0012.Elements.Add((SwiftDefinitionElement) MT582.U0013);
      MT582.U0011.Elements.Add((SwiftDefinitionElement) MT582.U0012);
      MT582.U0014 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description Of Security");
      MT582.U0014.Mandatory = false;
      MT582.U0011.Elements.Add((SwiftDefinitionElement) MT582.U0014);
      MT582.U0002.Elements.Add((SwiftDefinitionElement) MT582.U0011);
      MT582.U0015 = new SwiftTagDefinition("Narrative_A_79", "Narrative");
      MT582.U0015.TagName = ":79:";
      MT582.U0015.Mandatory = false;
      MT582.U0002.Elements.Add((SwiftDefinitionElement) MT582.U0015);
      MT582.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT582.U0002);
      MT582.U0016 = new SwiftTagSequenceDefinition("SequenceB", "Funds Claimed Or Advised");
      MT582.U0016.Mandatory = false;
      MT582.U0017 = new SwiftTagDefinition("GrossAmountClaimedReceived_B_32G", "Gross Amount Claimed Received");
      MT582.U0017.TagName = ":32G:";
      MT582.U0017.Mandatory = false;
      MT582.U0018 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT582.U0017.Elements.Add((SwiftDefinitionElement) MT582.U0018);
      MT582.U0019 = new SwiftTagSubItemDefinition("Amount", "Quantity");
      MT582.U0017.Elements.Add((SwiftDefinitionElement) MT582.U0019);
      MT582.U0016.Elements.Add((SwiftDefinitionElement) MT582.U0017);
      MT582.U001A = new SwiftTagDefinition("Charges_B_71B", "Charges");
      MT582.U001A.TagName = ":71B:";
      MT582.U001A.Mandatory = false;
      MT582.U0016.Elements.Add((SwiftDefinitionElement) MT582.U001A);
      MT582.U001B = new SwiftTagDefinition("ExchangeRate_B_36", "Exchange Rate");
      MT582.U001B.TagName = ":36:";
      MT582.U001B.Mandatory = false;
      MT582.U001C = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT582.U001B.Elements.Add((SwiftDefinitionElement) MT582.U001C);
      MT582.U0016.Elements.Add((SwiftDefinitionElement) MT582.U001B);
      MT582.U001D = new SwiftTagDefinition("NetAmountPaidClaimed_B_34A", "Net Amount Paid Claimed");
      MT582.U001D.TagName = ":34A:";
      MT582.U001E = new SwiftTagSubItemDefinition("Date", "Date");
      MT582.U001D.Elements.Add((SwiftDefinitionElement) MT582.U001E);
      MT582.U001F = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT582.U001D.Elements.Add((SwiftDefinitionElement) MT582.U001F);
      MT582.U007F = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT582.U001D.Elements.Add((SwiftDefinitionElement) MT582.U007F);
      MT582.U0016.Elements.Add((SwiftDefinitionElement) MT582.U001D);
      MT582.U0080 = new SwiftTagChoiceDefinition("Choice", "");
      MT582.U0080.Mandatory = false;
      MT582.U0080.Multiple = true;
      MT582.U0081 = new SwiftTagDefinition("AccountForPayment_B_53A", "Account For Payment");
      MT582.U0081.TagName = ":53A:";
      MT582.U0082 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0082.Mandatory = false;
      MT582.U0081.Elements.Add((SwiftDefinitionElement) MT582.U0082);
      MT582.U0083 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT582.U0081.Elements.Add((SwiftDefinitionElement) MT582.U0083);
      MT582.U0080.Elements.Add((SwiftDefinitionElement) MT582.U0081);
      MT582.U0084 = new SwiftTagDefinition("AccountForPayment_B_53C", "Account For Payment");
      MT582.U0084.TagName = ":53C:";
      MT582.U0086 = new SwiftTagSubItemDefinition("Account", "Account");
      MT582.U0084.Elements.Add((SwiftDefinitionElement) MT582.U0086);
      MT582.U0080.Elements.Add((SwiftDefinitionElement) MT582.U0084);
      MT582.U0087 = new SwiftTagDefinition("AccountForPayment_B_53D", "Account For Payment");
      MT582.U0087.TagName = ":53D:";
      MT582.U0088 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0088.Mandatory = false;
      MT582.U0087.Elements.Add((SwiftDefinitionElement) MT582.U0088);
      MT582.U0089 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT582.U0087.Elements.Add((SwiftDefinitionElement) MT582.U0089);
      MT582.U0080.Elements.Add((SwiftDefinitionElement) MT582.U0087);
      MT582.U0016.Elements.Add((SwiftDefinitionElement) MT582.U0080);
      MT582.U008A = new SwiftTagChoiceDefinition("Choice", "");
      MT582.U008A.Mandatory = false;
      MT582.U008A.Multiple = true;
      MT582.U008B = new SwiftTagDefinition("Intermediary_B_56A", "Intermediary");
      MT582.U008B.TagName = ":56A:";
      MT582.U008C = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U008C.Mandatory = false;
      MT582.U008B.Elements.Add((SwiftDefinitionElement) MT582.U008C);
      MT582.U008D = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT582.U008B.Elements.Add((SwiftDefinitionElement) MT582.U008D);
      MT582.U008A.Elements.Add((SwiftDefinitionElement) MT582.U008B);
      MT582.U008E = new SwiftTagDefinition("Intermediary_B_56D", "Intermediary");
      MT582.U008E.TagName = ":56D:";
      MT582.U008F = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U008F.Mandatory = false;
      MT582.U008E.Elements.Add((SwiftDefinitionElement) MT582.U008F);
      MT582.U0090 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT582.U008E.Elements.Add((SwiftDefinitionElement) MT582.U0090);
      MT582.U008A.Elements.Add((SwiftDefinitionElement) MT582.U008E);
      MT582.U0016.Elements.Add((SwiftDefinitionElement) MT582.U008A);
      MT582.U0091 = new SwiftTagChoiceDefinition("Choice", "");
      MT582.U0091.Mandatory = false;
      MT582.U0091.Multiple = true;
      MT582.U0092 = new SwiftTagDefinition("AccountWithInstitution_B_57A", "Account With Institution");
      MT582.U0092.TagName = ":57A:";
      MT582.U0093 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0093.Mandatory = false;
      MT582.U0092.Elements.Add((SwiftDefinitionElement) MT582.U0093);
      MT582.U0094 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT582.U0092.Elements.Add((SwiftDefinitionElement) MT582.U0094);
      MT582.U0091.Elements.Add((SwiftDefinitionElement) MT582.U0092);
      MT582.U0095 = new SwiftTagDefinition("AccountWithInstitution_B_57B", "Account With Institution");
      MT582.U0095.TagName = ":57B:";
      MT582.U0096 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0096.Mandatory = false;
      MT582.U0095.Elements.Add((SwiftDefinitionElement) MT582.U0096);
      MT582.U0097 = new SwiftTagSubItemDefinition("Location", "Location");
      MT582.U0097.Mandatory = false;
      MT582.U0095.Elements.Add((SwiftDefinitionElement) MT582.U0097);
      MT582.U0091.Elements.Add((SwiftDefinitionElement) MT582.U0095);
      MT582.U0098 = new SwiftTagDefinition("AccountWithInstitution_B_57D", "Account With Institution");
      MT582.U0098.TagName = ":57D:";
      MT582.U0099 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0099.Mandatory = false;
      MT582.U0098.Elements.Add((SwiftDefinitionElement) MT582.U0099);
      MT582.U009A = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT582.U0098.Elements.Add((SwiftDefinitionElement) MT582.U009A);
      MT582.U0091.Elements.Add((SwiftDefinitionElement) MT582.U0098);
      MT582.U0016.Elements.Add((SwiftDefinitionElement) MT582.U0091);
      MT582.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT582.U0016);
      MT582.U009B = new SwiftTagSequenceDefinition("SequenceC", "Securities Claimed or Advised");
      MT582.U009B.Mandatory = false;
      MT582.U009C = new SwiftTagDefinition("QuantityOfSecuritiesClaimedorAdvised_C_35S", "Quantity Of Securities Claimed or Advised");
      MT582.U009C.TagName = ":35S:";
      MT582.U009D = new SwiftTagSubItemDefinition("Type", "Type");
      MT582.U009C.Elements.Add((SwiftDefinitionElement) MT582.U009D);
      MT582.U009E = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT582.U009C.Elements.Add((SwiftDefinitionElement) MT582.U009E);
      MT582.U009B.Elements.Add((SwiftDefinitionElement) MT582.U009C);
      MT582.U009F = new SwiftTagDefinition("IdentificationOfSecurities_C_35B", "Identification Of Securities");
      MT582.U009F.TagName = ":35B:";
      MT582.U0001U0002 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification Of Security");
      MT582.U0001U0002.Mandatory = false;
      MT582.U0002U0002 = new SwiftTagSubItemDefinition("IdentificationofSecurity", "Identification of Security");
      MT582.U0001U0002.Elements.Add((SwiftDefinitionElement) MT582.U0002U0002);
      MT582.U009F.Elements.Add((SwiftDefinitionElement) MT582.U0001U0002);
      MT582.U0003U0002 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description Of Security");
      MT582.U0003U0002.Mandatory = false;
      MT582.U009F.Elements.Add((SwiftDefinitionElement) MT582.U0003U0002);
      MT582.U009B.Elements.Add((SwiftDefinitionElement) MT582.U009F);
      MT582.U0004U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT582.U0004U0002.Mandatory = false;
      MT582.U0004U0002.Multiple = true;
      MT582.U0005U0002 = new SwiftTagDefinition("SafekeepingAccount_C_83A", "Safekeeping Account");
      MT582.U0005U0002.TagName = ":83A:";
      MT582.U0006U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0006U0002.Mandatory = false;
      MT582.U0005U0002.Elements.Add((SwiftDefinitionElement) MT582.U0006U0002);
      MT582.U0007U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT582.U0005U0002.Elements.Add((SwiftDefinitionElement) MT582.U0007U0002);
      MT582.U0004U0002.Elements.Add((SwiftDefinitionElement) MT582.U0005U0002);
      MT582.U0008U0002 = new SwiftTagDefinition("SafekeepingAccount_C_83C", "Safekeeping Account");
      MT582.U0008U0002.TagName = ":83C:";
      MT582.U000EU0002 = new SwiftTagSubItemDefinition("Account", "Account");
      MT582.U0008U0002.Elements.Add((SwiftDefinitionElement) MT582.U000EU0002);
      MT582.U0004U0002.Elements.Add((SwiftDefinitionElement) MT582.U0008U0002);
      MT582.U000FU0002 = new SwiftTagDefinition("SafekeepingAccount_C_83D", "Safekeeping Account");
      MT582.U000FU0002.TagName = ":83D:";
      MT582.U0010U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0010U0002.Mandatory = false;
      MT582.U000FU0002.Elements.Add((SwiftDefinitionElement) MT582.U0010U0002);
      MT582.U0011U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT582.U000FU0002.Elements.Add((SwiftDefinitionElement) MT582.U0011U0002);
      MT582.U0004U0002.Elements.Add((SwiftDefinitionElement) MT582.U000FU0002);
      MT582.U009B.Elements.Add((SwiftDefinitionElement) MT582.U0004U0002);
      MT582.U0012U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT582.U0012U0002.Mandatory = false;
      MT582.U0012U0002.Multiple = true;
      MT582.U0013U0002 = new SwiftTagDefinition("DelivererOrReceiverOfSecurities_C_87A", "Deliverer Or Receiver Of Securities");
      MT582.U0013U0002.TagName = ":87A:";
      MT582.U0014U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0014U0002.Mandatory = false;
      MT582.U0013U0002.Elements.Add((SwiftDefinitionElement) MT582.U0014U0002);
      MT582.U0015U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT582.U0013U0002.Elements.Add((SwiftDefinitionElement) MT582.U0015U0002);
      MT582.U0012U0002.Elements.Add((SwiftDefinitionElement) MT582.U0013U0002);
      MT582.U0016U0002 = new SwiftTagDefinition("DelivererOrReceiveOfSecurities_C_87B", "Deliverer Or Receiver Of Securities");
      MT582.U0016U0002.TagName = ":87B:";
      MT582.U0017U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U0017U0002.Mandatory = false;
      MT582.U0016U0002.Elements.Add((SwiftDefinitionElement) MT582.U0017U0002);
      MT582.U0018U0002 = new SwiftTagSubItemDefinition("Location", "Location");
      MT582.U0018U0002.Mandatory = false;
      MT582.U0016U0002.Elements.Add((SwiftDefinitionElement) MT582.U0018U0002);
      MT582.U0012U0002.Elements.Add((SwiftDefinitionElement) MT582.U0016U0002);
      MT582.U0019U0002 = new SwiftTagDefinition("DelivererOrReceiveOfSecurities_C_87D", "Deliverer Or Receiver Of Securities");
      MT582.U0019U0002.TagName = ":87D:";
      MT582.U001AU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT582.U001AU0002.Mandatory = false;
      MT582.U0019U0002.Elements.Add((SwiftDefinitionElement) MT582.U001AU0002);
      MT582.U001BU0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT582.U0019U0002.Elements.Add((SwiftDefinitionElement) MT582.U001BU0002);
      MT582.U0012U0002.Elements.Add((SwiftDefinitionElement) MT582.U0019U0002);
      MT582.U009B.Elements.Add((SwiftDefinitionElement) MT582.U0012U0002);
      MT582.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT582.U009B);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT582.U0002;
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 TransactionReferenceNumber_A_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0003);
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 Tag20_TransactionReferenceNumber_A
      {
        get
        {
          return this.TransactionReferenceNumber_A_20;
        }
      }

      [Description("Related Reference")]
      public Tag21 RelatedReference_A_21
      {
        get
        {
          return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0005);
        }
      }

      [Description("Related Reference")]
      public Tag21 Tag21_RelatedReference_A
      {
        get
        {
          return this.RelatedReference_A_21;
        }
      }

      [Description("Further Identification")]
      public Tag23 FurtherIdentification_A_23
      {
        get
        {
          return new Tag23((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0007);
        }
      }

      [Description("Further Identification")]
      public Tag23 Tag23_FurtherIdentification_A
      {
        get
        {
          return this.FurtherIdentification_A_23;
        }
      }

      [Description("Quantity Of Securities")]
      public Tag35A QuantityOfSecurities_A_35A
      {
        get
        {
          return new Tag35A((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U000E);
        }
      }

      [Description("Quantity Of Securities")]
      public Tag35A Tag35A_QuantityOfSecurities_A
      {
        get
        {
          return this.QuantityOfSecurities_A_35A;
        }
      }

      [Description("Identification Of Securities")]
      public Tag35B IdentificationOfSecurities_A_35B
      {
        get
        {
          return new Tag35B((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0011);
        }
      }

      [Description("Identification Of Securities")]
      public Tag35B Tag35B_IdentificationOfSecurities_A
      {
        get
        {
          return this.IdentificationOfSecurities_A_35B;
        }
      }

      [Description("Narrative")]
      public Tag79 Narrative_A_79
      {
        get
        {
          return new Tag79((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0015);
        }
      }

      [Description("Narrative")]
      public Tag79 Tag79_Narrative_A
      {
        get
        {
          return this.Narrative_A_79;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT582.U0016;
        }
      }

      [Description("Gross Amount Claimed Received")]
      public Tag32G GrossAmountClaimedReceived_B_32G
      {
        get
        {
          return new Tag32G((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0017);
        }
      }

      [Description("Gross Amount Claimed Received")]
      public Tag32G Tag32G_GrossAmountClaimedReceived_B
      {
        get
        {
          return this.GrossAmountClaimedReceived_B_32G;
        }
      }

      [Description("Charges")]
      public Tag71B Charges_B_71B
      {
        get
        {
          return new Tag71B((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U001A);
        }
      }

      [Description("Charges")]
      public Tag71B Tag71B_Charges_B
      {
        get
        {
          return this.Charges_B_71B;
        }
      }

      [Description("Exchange Rate")]
      public Tag36 ExchangeRate_B_36
      {
        get
        {
          return new Tag36((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U001B);
        }
      }

      [Description("Exchange Rate")]
      public Tag36 Tag36_ExchangeRate_B
      {
        get
        {
          return this.ExchangeRate_B_36;
        }
      }

      [Description("Net Amount Paid Claimed")]
      public Tag34A NetAmountPaidClaimed_B_34A
      {
        get
        {
          return new Tag34A((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U001D);
        }
      }

      [Description("Net Amount Paid Claimed")]
      public Tag34A Tag34A_NetAmountPaidClaimed_B
      {
        get
        {
          return this.NetAmountPaidClaimed_B_34A;
        }
      }

      [Description("Account For Payment")]
      public Tag53A AccountForPayment_B_53A
      {
        get
        {
          return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0081);
        }
      }

      [Description("Account For Payment")]
      public Tag53A Tag53A_AccountForPayment_B
      {
        get
        {
          return this.AccountForPayment_B_53A;
        }
      }

      [Description("Account For Payment")]
      public Tag53C AccountForPayment_B_53C
      {
        get
        {
          return new Tag53C((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0084);
        }
      }

      [Description("Account For Payment")]
      public Tag53C Tag53C_AccountForPayment_B
      {
        get
        {
          return this.AccountForPayment_B_53C;
        }
      }

      [Description("Account For Payment")]
      public Tag53D AccountForPayment_B_53D
      {
        get
        {
          return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0087);
        }
      }

      [Description("Account For Payment")]
      public Tag53D Tag53D_AccountForPayment_B
      {
        get
        {
          return this.AccountForPayment_B_53D;
        }
      }

      [Description("Intermediary")]
      public Tag56A Intermediary_B_56A
      {
        get
        {
          return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U008B);
        }
      }

      [Description("Intermediary")]
      public Tag56A Tag56A_Intermediary_B
      {
        get
        {
          return this.Intermediary_B_56A;
        }
      }

      [Description("Intermediary")]
      public Tag56D Intermediary_B_56D
      {
        get
        {
          return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U008E);
        }
      }

      [Description("Intermediary")]
      public Tag56D Tag56D_Intermediary_B
      {
        get
        {
          return this.Intermediary_B_56D;
        }
      }

      [Description("Account With Institution")]
      public Tag57A AccountWithInstitution_B_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0092);
        }
      }

      [Description("Account With Institution")]
      public Tag57A Tag57A_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57A;
        }
      }

      [Description("Account With Institution")]
      public Tag57B AccountWithInstitution_B_57B
      {
        get
        {
          return new Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0095);
        }
      }

      [Description("Account With Institution")]
      public Tag57B Tag57B_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57B;
        }
      }

      [Description("Account With Institution")]
      public Tag57D AccountWithInstitution_B_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0098);
        }
      }

      [Description("Account With Institution")]
      public Tag57D Tag57D_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57D;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT582.U009B;
        }
      }

      [Description("Quantity Of Securities Claimed or Advised")]
      public Tag35S QuantityOfSecuritiesClaimedorAdvised_C_35S
      {
        get
        {
          return new Tag35S((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U009C);
        }
      }

      [Description("Quantity Of Securities Claimed or Advised")]
      public Tag35S Tag35S_QuantityOfSecuritiesClaimedorAdvised_C
      {
        get
        {
          return this.QuantityOfSecuritiesClaimedorAdvised_C_35S;
        }
      }

      [Description("Identification Of Securities")]
      public Tag35B IdentificationOfSecurities_C_35B
      {
        get
        {
          return new Tag35B((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U009F);
        }
      }

      [Description("Identification Of Securities")]
      public Tag35B Tag35B_IdentificationOfSecurities_C
      {
        get
        {
          return this.IdentificationOfSecurities_C_35B;
        }
      }

      [Description("Safekeeping Account")]
      public Tag83A SafekeepingAccount_C_83A
      {
        get
        {
          return new Tag83A((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0005U0002);
        }
      }

      [Description("Safekeeping Account")]
      public Tag83A Tag83A_SafekeepingAccount_C
      {
        get
        {
          return this.SafekeepingAccount_C_83A;
        }
      }

      [Description("Safekeeping Account")]
      public Tag83C SafekeepingAccount_C_83C
      {
        get
        {
          return new Tag83C((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0008U0002);
        }
      }

      [Description("Safekeeping Account")]
      public Tag83C Tag83C_SafekeepingAccount_C
      {
        get
        {
          return this.SafekeepingAccount_C_83C;
        }
      }

      [Description("Safekeeping Account")]
      public Tag83D SafekeepingAccount_C_83D
      {
        get
        {
          return new Tag83D((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U000FU0002);
        }
      }

      [Description("Safekeeping Account")]
      public Tag83D Tag83D_SafekeepingAccount_C
      {
        get
        {
          return this.SafekeepingAccount_C_83D;
        }
      }

      [Description("Deliverer Or Receiver Of Securities")]
      public Tag87A DelivererOrReceiverOfSecurities_C_87A
      {
        get
        {
          return new Tag87A((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0013U0002);
        }
      }

      [Description("Deliverer Or Receiver Of Securities")]
      public Tag87A Tag87A_DelivererOrReceiverOfSecurities_C
      {
        get
        {
          return this.DelivererOrReceiverOfSecurities_C_87A;
        }
      }

      [Description("Deliverer Or Receiver Of Securities")]
      public Tag87B DelivererOrReceiveOfSecurities_C_87B
      {
        get
        {
          return new Tag87B((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0016U0002);
        }
      }

      [Description("Deliverer Or Receiver Of Securities")]
      public Tag87B Tag87B_DelivererOrReceiveOfSecurities_C
      {
        get
        {
          return this.DelivererOrReceiveOfSecurities_C_87B;
        }
      }

      [Description("Deliverer Or Receiver Of Securities")]
      public Tag87D DelivererOrReceiveOfSecurities_C_87D
      {
        get
        {
          return new Tag87D((SwiftElement) this, 0, (SwiftDefinitionElement) MT582.U0019U0002);
        }
      }

      [Description("Deliverer Or Receiver Of Securities")]
      public Tag87D Tag87D_DelivererOrReceiveOfSecurities_C
      {
        get
        {
          return this.DelivererOrReceiveOfSecurities_C_87D;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }
  }
}
